package com.guigu.www.mapper;

import com.guigu.www.pojo.Bespeak;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DengHao
 * @since 2021-10-21
 */
public interface BespeakMapper extends BaseMapper<Bespeak> {
    /*陈显科  根据会员id查询套餐人信息*/
    @Select("SELECT * FROM bespeak WHERE mem_id IN(\n" +
            "SELECT mem_id FROM member WHERE mem_id=#{sid}) ORDER BY bes_time DESC")
    List<Bespeak> selectbeskpeak(int sid);
}
